package com.hhw.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hhw.entity.User;
import com.hhw.mapper.UserMapper;

@Service
@Transactional
public class UserServiceImp implements UserService{
	//注入dao
	@Autowired
private UserMapper userMapper;

	@Override
	public List<User> selectAllUser() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public User selectUser(@Param("user_name") String user_name,@Param("user_password") String user_password) {
		User user=this.userMapper.selectUser(user_name, user_password);
		return user;
	}


	
	
	}

